package routers

import "zswei.xyz/manager/api"

func (router RouterGroup) AdvertRouter() {
	advertApi := api.ApiGroupApp.AdvertApi

	v2 := router.Group("/advert")
	{
		v2.POST("createAdvert", advertApi.AdvertCreateView)   // 创建广告
		v2.GET("getAdvert", advertApi.AdvertListView)         // 获取广告
		v2.PUT("updateAdvert", advertApi.AdvertUpdateView)    // 修改广告
		v2.DELETE("deleteAdvert", advertApi.AdvertRemoveView) // 删除广告
	}
}
